package com.anlu.base.visitor;

import lombok.ToString;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@ToString
public class Hayes implements Modem{


    @Override
    public void accept(ModemVistor vistor) {
        if(vistor instanceof HayesVisitor){
            ((HayesVisitor) vistor).visit(this);
        }else{
            log.info("Only HayesVisitor is allowed to visit Hayes modem");
        }
    }



}
